function x = vector_processing(amplitude,f,f_sampling,N)
% function that makes samples of a sine wave with vector process
% amplitude is amplitude of the sinewave
% f is the frequency of the signal
% f_sample is the sample frequency of the signal
% N is the number of points = number of samples + 1

Ts = 1 / (f_sampling);
t = [0:Ts:(N-1) * Ts];
x = zeros(1,N);
x = x + amplitude * sin(2 * pi * f * t)



%% RMS value %%


value = 0;
for count = 1:N
value = value + (x(count)^2)
end
RMS_value = sqrt((value) * (1/N))



%% plotting %%


plot(t,x)
xlabel('time')
ylabel('x(t)')
legend('x sine wave vs time')
